package main

import (
    "fmt"
    "strings"
)


func main(){
    text := "abc/hdb-infrastructure/galaxy"
    temp_list := strings.Split(text, "/")
    fmt.Println(temp_list)
    size :=  len(temp_list)   
 
    for i := size-1; i>=0; i--{
        fmt.Println(temp_list[:i], temp_list[i])
    }
}
